package com.tj.collection.controller.chatter.request;

import com.kly.user.dto.chatter.Chatter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "chatterModifyReq", description = "chatter信息修改请求参数")
public class ChatterModifyReq {

    @ApiModelProperty("chatter code")
    private String chatterCode;
    @ApiModelProperty("性别：1-男 2-女 3-未知")
    private Integer gender;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("model code")
    private String modelUserCodes;
    @ApiModelProperty("chatter account")
    private String account;
    @ApiModelProperty("chatter名称")
    private String nickName;
    @ApiModelProperty("在线状态：1-在线 2-离线")
    private Integer onlineStatus;
    @ApiModelProperty("model code")
    private String modelUserCode;
    @ApiModelProperty("账号状态：1-disabled 2-enable")
    private Integer status;
    @ApiModelProperty("在线评级：1-S 2-A 3-B")
    private Integer level;
    @ApiModelProperty("工作类型：1-Full 2-PartTime")
    private Integer jobType;
    @ApiModelProperty("startHour1")
    private Integer startHour1;
    @ApiModelProperty("startHour2")
    private Integer startHour2;
    @ApiModelProperty("endHour1")
    private Integer endHour1;
    @ApiModelProperty("endHour2")
    private Integer endHour2;
    @ApiModelProperty("国家:巴基斯坦-PAK， 墨西哥-MX  菲律宾-PH")
    private String area;
    @ApiModelProperty("城市：Manila， 其它：Others")
    private String city;

    public Integer getStartHour1() {
        return startHour1;
    }

    public void setStartHour1(Integer startHour1) {
        this.startHour1 = startHour1;
    }

    public Integer getStartHour2() {
        return startHour2;
    }

    public void setStartHour2(Integer startHour2) {
        this.startHour2 = startHour2;
    }

    public Integer getEndHour1() {
        return endHour1;
    }

    public void setEndHour1(Integer endHour1) {
        this.endHour1 = endHour1;
    }

    public Integer getEndHour2() {
        return endHour2;
    }

    public void setEndHour2(Integer endHour2) {
        this.endHour2 = endHour2;
    }

    public String getChatterCode() {
        return chatterCode;
    }

    public void setChatterCode(String chatterCode) {
        this.chatterCode = chatterCode;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getModelUserCodes() {
        return modelUserCodes;
    }

    public void setModelUserCodes(String modelUserCodes) {
        this.modelUserCodes = modelUserCodes;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(Integer onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    public String getModelUserCode() {
        return modelUserCode;
    }

    public void setModelUserCode(String modelUserCode) {
        this.modelUserCode = modelUserCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getJobType() {
        return jobType;
    }

    public void setJobType(Integer jobType) {
        this.jobType = jobType;
    }

    public static Chatter toChatter(ChatterModifyReq req, Long adminId) {
        Chatter chatter = new Chatter();
        BeanUtils.copyProperties(req, chatter);
        chatter.setAdminId(adminId);
        return chatter;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}
